<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>拼团管理</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/index.css" />
</head>
<body> 
<div class="order">
    <div class="tabber04"><span <eq name="show_type" value="0">class="on"</eq>>全部</span><span <eq name="show_type" value="02">class="on"</eq>>审核状态</span><span <eq name="show_type" value="1">class="on"</eq>>拼团中</span><span <eq name="show_type" value="4">class="on"</eq>>已结束</span></div>
    <div id="tab-content02">
        <div class="prolist" style=" <eq name="show_type" value="0"><else/>display:none;</eq>">
            <ul>
            <volist name="spellgroup" id="vo">
                <li>
                    <div class="pic"><neq name="vo.f_img" value=''><img src="{$vo.f_img}"/><else/><img src="__PUBLIC__/Wx/img/addpic.png" /></neq></div>
                    <div class="name">
                        <h2>{$vo['title']}</h2>
                        <p>{$vo['state']}</p>
                        <h3>库存：<b>{$vo['num']}</b>份</h3>
                                <div class="handle">
                                    <if condition="$vo['state'] eq '审核失败'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/update/id/{$vo['id']}">编辑</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    <if condition="$vo['state'] eq '结束'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/shelves/id/{$vo['id']}">上架</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    
                                </div>
                    </div>
                </li>
            </volist>
            </ul>
        </div>
        <div class="prolist" style=" <eq name="show_type" value="02"><else/>display:none;</eq>">
            <ul>
            <volist name="spellgroup_02" id="vo">
                <li>
                    <div class="pic"><neq name="vo.f_img" value=''><img src="{$vo.f_img}"/><else/><img src="__PUBLIC__/Wx/img/addpic.png" /></neq></div>
                    <div class="name">
                        <h2>{$vo['title']}</h2>
                        <p>{$vo['state']}</p>
                        <h3>库存：<b>{$vo['num']}</b>份</h3>
                                <div class="handle">
                                    <if condition="$vo['state'] eq '审核失败'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/update/id/{$vo['id']}">编辑</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    <if condition="$vo['state'] eq '结束'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/shelves/id/{$vo['id']}">上架</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    
                                </div>
                    </div>
                </li>
            </volist>
            </ul>
        </div>
        <div class="prolist" style=" <eq name="show_type" value="1"><else/>display:none;</eq>">
            <ul>
            <volist name="spellgroup_1" id="vo">
                <li>
                    <div class="pic"><neq name="vo.f_img" value=''><img src="{$vo.f_img}"/><else/><img src="__PUBLIC__/Wx/img/addpic.png" /></neq></div>
                    <div class="name">
                        <h2>{$vo['title']}</h2>
                        <p>{$vo['state']}</p>
                        <h3>库存：<b>{$vo['num']}</b>份</h3>
                                <div class="handle">
                                    <if condition="$vo['state'] eq '审核失败'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/update/id/{$vo['id']}">编辑</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    <if condition="$vo['state'] eq '结束'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/shelves/id/{$vo['id']}">上架</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    
                                </div>
                    </div>
                </li>
            </volist>
            </ul>
        </div>
        <div class="prolist" style=" <eq name="show_type" value="4"><else/>display:none;</eq>">
            <ul>
            <volist name="spellgroup_4" id="vo">
                <li>
                    <div class="pic"><neq name="vo.f_img" value=''><img src="{$vo.f_img}"/><else/><img src="__PUBLIC__/Wx/img/addpic.png" /></neq></div>
                    <div class="name">
                        <h2>{$vo['title']}</h2>
                        <p>{$vo['state']}</p>
                        <h3>库存：<b>{$vo['num']}</b>份</h3>
                                <div class="handle">
                                    <if condition="$vo['state'] eq '审核失败'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/update/id/{$vo['id']}">编辑</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    <if condition="$vo['state'] eq '结束'">
                                        <a href="__MODULE__/StoreMessage/Editstore/op/shelves/id/{$vo['id']}">上架</a>
                                        <span class="del" sgid="{$vo.id}">删除</span>
                                    </if>
                                    
                                </div>
                    </div>
                </li>
            </volist>
            </ul>
        </div>
    </div>

    <div class="notes">
    	<div class="inner">
        	<h2><img src="__PUBLIC__/Wx/img/del03.png"/></h2>
            <h3>删除成功！(自动关闭)</h3>
        </div>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$('.tabber04 span').click(function(){ 
		$(this).addClass("on").siblings().removeClass() 
		$("#tab-content02>.prolist").hide().eq($('.tabber04 span').index(this)).show(); 
	});
	$('.del').click(function(){ 
		$(this).parents('li').remove()
		$('.notes').css("display",'block');
		$('.notes').delay(2000).hide(0);
	});
</script>
<script type="text/javascript">
    $('.del').click(function(){
        var dele = $(this);
        var id = dele.attr('sgid');
        $.post('<?=U("StoreMessage/Deletestore")?>',{id:id},function (data) {
            if(!data){
                dele.parents("li").remove();
            }else{
                console.log(data);
            }
        })
    });

</script>
    
</body>
</html>